package com.imooc.sellspringcloud.server.controller;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author
 * @create 2019-07-31 21:11
 **/
@Component
@ConfigurationProperties("person")
@RefreshScope
@Data
public class Person {

    private Integer age;

    private String name;

}